xl: initialise rc before using it in vcpuset
authorWei Liu <wei.liu2@citrix.com>
Wed, 4 Nov 2015 11:32:57 +0000 (11:32 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 4 Nov 2015 11:37:33 +0000 (11:37 +0000)
commit6919a7dde48bf1a9314c328bfb93a8a2f741bb80
treed4cbea82f9bedb5abdf8c117d5ad3dbf810351dd
parent700772bc13a3d4e7a61cea166893c0f53b251f08
xl: initialise rc before using it in vcpuset

In 5b725e56 (xl: improve return and exit codes of vcpu related
functions), the return value of libxl_cpu_bitmap_alloc was not stored in
rc anymore. Yet the subsequent fprintf still used that.

Reinstate the original implementation, that is, to store return value of
libxl_cpu_bitmap_alloc in rc before using rc.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c